﻿using System.ComponentModel.DataAnnotations;
using System;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 发货
    /// </summary>
    [Serializable]
    public class ProductDeliveryBillDto
    {
        public Guid Id { get; set; }
        [Display(Name = "发货单号")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string DeliveryNo { get; set; }

        [Display(Name = "发货人时间")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.DateTime DeliveryDate { get; set; }
        [Display(Name = "确认状态")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public int AffirmState { get; set; }

       [Display(Name="确认时间")]
        public Nullable<System.DateTime> AffirmDate { get; set; }
        [Display(Name = "订单状态")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public int BillState { get; set; }
        [Display(Name = "是否结算")]
        public int IsSettle { get; set; }
        public int Deleted { get; set; }
        public System.Guid CreateID { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
         [Display(Name = "备注")]
        public string Remarks { get; set; }

         [Display(Name = "仓库名称")]
         [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid StorehouseID { get; set; }

         [Display(Name = "发货人名称")]
         [Required(ErrorMessage = "{0}不能为空！")]
         public System.Guid DeliveryorID { get; set; }//发货人
         [Display(Name = "送货人名称")]
         [Required(ErrorMessage = "{0}不能为空！")]
         public System.Guid SenderID { get; set; }

        [Display(Name = "收货单位名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid DeliveryID { get; set; }//收货单位ID

        
         [Display(Name = "确认人")]
        public Nullable<System.Guid> AffirmorID { get; set; }//确认人

         public string AffirmorName { get; set; }//确认人
         public string DeliveryName { get; set; }//收货单位名称
         public string SenderName { get; set; }//送货人名称
         public string DeliveryorName { get; set; }//发货人
         public string StorehouseName { get; set; }//仓库名称

        public string AffirmStateName { get; set; }//确认状态
        public string DeleteState { get; set; }//删除状态
        public string SettleState { get; set; }//结算状态
    }
}
